// t@C̃CN[h
#include_function ".\..\..\..\System\SystemConstant.txt"
#include_function ".\..\..\..\System\MaterialConstant.txt"
#include_function ".\..\..\..\System\ConfigSystem.txt"
#include_function ".\..\..\..\System\ItemSystem.txt"
#include_function ".\..\..\..\System\ShieldSystem.txt"
#include_function ".\..\..\..\System\EnemySystem.txt"

#include_function ".\..\..\..\Library\lib_all.txt"
#include_function ".\..\..\..\Library\lib_boss.txt"
#include_function ".\..\..\..\Library\lib_obj.txt"
#include_function ".\..\..\..\Library\lib_value.txt"
#include_function ".\..\..\..\Library\lib_usershot.txt"
#include_function ".\..\..\..\Library\lib_anime_fairy.txt"

let player = GetCommonDataDefaultEx( "OFT", "Player", "" );
let difficult = GetCommonDataDefaultEx( "OFT", "Difficult", "" );
let isDrawBackGround = GetIsDrawBackGround();
let isDrawEffect = GetIsDrawEffect();
let arg = GetArgument();
let isautodelete = false;

//_ACeo
let point_num = 3;

//PACeo
let spower_num = 1;

//PACeo
let lpower_num = 0;

//wTCY
let magic_size = 0.5;

/*
	@VERYSMALL		//ŏ
	@VERYSMALL_FLUFF	//ŏiȖсj
	@SMALL			//
	@SMALL_CAP		//iXqj
	@MIDDLE		//
	@MIDDLE_RIBBON		//i{j
	@LARGE			//
	@LARGE_FLOWER		//ij
*/

/**
 * ʂōŏɎs镔
 */
function InitializeData(){
	//Rf[^pXǂݏo
	GetMaterialPath();
	
	//wWJ
	if( isDrawEffect ){
		DrawMagicCircle( magic_size, 2, false, MAGIC_WHITE );
	}
}

/**
 * ʂōŌɎs镔
 */
function FinalizeData(){
	//폜ĂȂ΃ACeo
	if( !isautodelete ){
		let dist = GetGapLength( GetX(), GetY(), GetPlayerX(), GetPlayerY() );
		
		//_ACe
		loop( point_num ){
			let rad = rand( 0, 60 );
			let angle = rand( 0, 360 );
			let x = GetX() + rad * cos( angle );
			let y = GetY() + rad * sin( angle );
			CreateUserItem( x, y, UI_POINT );
		}
		
		//PACe
		loop( spower_num ){
			let rad = rand( 0, 60 );
			let angle = rand( 0, 360 );
			let x = GetX() + rad * cos( angle );
			let y = GetY() + rad * sin( angle );
			CreateUserItem( x, y, UI_GAUGE_S );
		}
		
		//PACe
		loop( lpower_num ){
			let rad = rand( 0, 60 );
			let angle = rand( 0, 360 );
			let x = GetX() + rad * cos( angle );
			let y = GetY() + rad * sin( angle );
			CreateUserItem( x, y, UI_GAUGE_L );
		}
	}
}
